package com.baomidou.springwind.mapper;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.springwind.entity.Employee;

import java.util.List;

/**
 * Created by Administrator on 2016/12/12.
 */
public interface EmployeeMapper extends AutoMapper<Employee> {
    List<Employee> selectEmployeeById(String id);

    List<Employee> selectAllEmployee(int offset, int size);

    List<Employee> selectByEmployeeNum(int offset, int size, String employeenum);
    List<Employee> selectByEmployeeName(int offset, int size, String name);
    List<Employee> selectByDepartmentName(int offset, int size, String name);

    boolean upDateEmployeeById(Employee employee);

}
